<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    // 查看对象的属性特征
    const user={name:'小灰',age:18};
    console.log(JSON.stringify(Object.getOwnPropertyDescriptor(user,'name'),null,2));
    console.log(JSON.stringify(Object.getOwnPropertyDescriptors(user,'name'),null,2));
    
    
</script>
</html>